package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

class zaio {
   private zpa a = null;
   private zoz b = null;
   private WorksheetCollection c = null;
   private Chart d = null;
   private HashMap e = new HashMap();
   private ArrayList f = new ArrayList();
   private HashMap g = null;
   private ArrayList h = new ArrayList();
   private boolean i = false;
   private ArrayList j = new ArrayList();
   private static final com.aspose.cells.b.c.a.za k = new com.aspose.cells.b.c.a.za(new String[]{"{781A3756-C4B2-4CAC-9D66-4F8BD8637D16}", "{6F2FDCE9-48DA-4B69-8628-5D25D57E5C99}", "{02D57815-91ED-43cb-92C2-25804820EDAC}", "numRef", "strRef", "multiLvlStrRef", "numLit", "strLit", "f", "numCache", "strCache", "multiLvlStrCache", "eaVert", "wordArtVert", "wordArtVertRtl", "SERIESNAME", "CATEGORYNAME", "VALUE", "CELLRANGE", "PERCENTAGE"});

   zaio(zoz var1, zpa var2, Chart var3, HashMap var4) {
      this.b = var1;
      this.a = var2;
      this.d = var3;
      this.c = this.b.a.getWorksheets();
      this.g = var4;
   }

   private void a() {
      int var1 = 0;
      int var2 = this.d.getNSeries().getCount();
      LegendEntryCollection var3 = this.d.getLegend().A();
      if (var3 != null) {
         Iterator var4 = var3.iterator();

         while(var4.hasNext()) {
            LegendEntry var5 = (LegendEntry)var4.next();
            if (var5.c() >= 0 && var5.c() < var2) {
               Series var6 = (Series)this.h.get(var5.c());
               var5.b(var6.B());
            }
         }
      }

      for(int var7 = 0; var7 < var2; ++var7) {
         Series var8 = this.d.getNSeries().get(var7);
         if (var8.o() != null) {
            for(int var9 = 0; var9 < var8.getTrendLines().getCount(); ++var9) {
               var8.getTrendLines().get(var9).p(var1++);
            }
         }
      }

      this.d.e = var1;
   }

   void a(zcfw var1) throws Exception {
      this.w(var1);
      if (!var1.n()) {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if ("txPr".equals(var1.p())) {
               zqo var2 = this.a(var1, this.d.d());
               if (var2.f != null) {
                  Font var3 = new Font(this.d.j(), (Object)null, false);
                  var3.a(10.0D);
                  var2.f.a(var3);
                  this.d.getChartArea().c(zase.a(var3, this.d.j()));
                  this.d.a.g = var2.f;
               }
            } else if ("lang".equals(var1.p())) {
               this.d.a(s(var1));
            } else {
               var1.a();
            }
         }

      }
   }

   void b(zcfw var1) throws Exception {
      this.d.d(1);
      this.d.getPivotOptions().a = false;
      this.w(var1);
      if (!var1.n()) {
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if ("chart".equals(var1.p())) {
                  if (var1.n()) {
                     throw new CellsException(6, "Invalid chart element");
                  }

                  this.c(var1);
               } else {
                  String var5;
                  if ("roundedCorners".equals(var1.p())) {
                     var5 = s(var1);
                     if (var5 != null && "1".equals(var5)) {
                        this.d.setRectangularCornered(false);
                     }
                  } else if ("spPr".equals(var1.p()) && !var1.n()) {
                     this.b(var1, this.d.getChartArea().getShapeProperties());
                  } else if ("userShapes".equals(var1.p())) {
                     this.d.a.b = var1.a("id", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
                     var1.a();
                  } else if ("style".equals(var1.p())) {
                     var5 = s(var1);
                     if (var5 != null) {
                        int var6 = zase.C(var5);
                        if (var6 >= 1 && var6 <= 48) {
                           this.a(var6);
                        }
                     }
                  } else if ("pivotSource".equals(var1.p()) && !var1.n()) {
                     this.d(var1);
                  } else if ("AlternateContent".equals(var1.p())) {
                     this.d.a.e = var1.u();
                     zcfw var2 = zasr.a(this.d.a.e, false);
                     var2.d();
                     var2.j();
                     if (var2.r() == 1 && "AlternateContent".equals(var2.p())) {
                        var2.d();
                        var2.j();
                        if (var2.r() == 1 && "Choice".equals(var2.p())) {
                           var2.d();
                           var2.j();
                           if (var2.r() == 1 && "style".equals(var2.p())) {
                              var2.a();
                              var2.d();
                              var2.j();
                              if (var2.r() == 1 && "Fallback".equals(var2.p())) {
                                 var2.d();
                                 var2.j();
                                 if (var2.r() == 1 && "style".equals(var2.p())) {
                                    String var3 = s(var2);
                                    if (var3 != null) {
                                       int var4 = zase.C(var3);
                                       if (var4 >= 1 && var4 <= 48) {
                                          this.a(var4);
                                          this.d.a.e = null;
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }

                     var2.c();
                  } else if ("extLst".equals(var1.p())) {
                     this.e(var1);
                  } else {
                     var1.a();
                  }
               }
            }

            this.a();
            return;
         }
      }
   }

   private void a(int var1) {
      this.d.a(var1);
      switch(var1) {
      case 41:
      case 42:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
         this.d.getChartArea().getFont().setColor(Color.getWhite());
         this.d.getChartArea().getArea().setFormatting(2);
         this.d.getChartArea().getArea().setForegroundColor(Color.getBlack());
      default:
      }
   }

   private void d(zcfw var1) throws Exception {
      var1.d();

      while(var1.r() != 4) {
         var1.j();
         if (var1.r() != 1) {
            var1.a();
         } else if ("name".equals(var1.p())) {
            String var2 = var1.i();
            if (var2 != null && var2.length() > 0) {
               var2 = var2.trim();
               if (var2.charAt(0) == '[') {
                  int var3 = var2.indexOf(93);
                  if (var3 != -1) {
                     if (var2.length() > var3 + 1) {
                        var2 = var2.substring(var3 + 1);
                     } else {
                        var2 = null;
                     }
                  }
               }

               if (var2 != null && var2.length() > 0) {
                  this.d.setPivotSource(var2);
               }
            }
         } else {
            var1.a();
         }
      }

      var1.h();
   }

   private void e(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(zass.a(var1)) {
            if ("ext".equals(var1.p())) {
               this.f(var1);
            } else {
               var1.a();
            }
         }

      }
   }

   private void f(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         String var2 = var1.a("uri");
         switch(k.a(var2)) {
         case 0:
            var1.d();

            while(zass.a(var1)) {
               if ("pivotOptions".equals(var1.p())) {
                  this.g(var1);
               } else {
                  var1.a();
               }
            }

            return;
         default:
            com.aspose.cells.b.a.a.ze.a(this.d.a.b(), (Object)var1.u());
         }
      }
   }

   private void g(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         this.d.getPivotOptions().a = true;
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var2;
               if ("dropZoneFilter".equals(var1.p())) {
                  var2 = s(var1);
                  this.d.getPivotOptions().DropZoneFilter = !"0".equals(var2);
               } else if ("dropZoneCategories".equals(var1.p())) {
                  var2 = s(var1);
                  this.d.getPivotOptions().DropZoneCategories = !"0".equals(var2);
               } else if ("dropZoneData".equals(var1.p())) {
                  var2 = s(var1);
                  this.d.getPivotOptions().DropZoneData = !"0".equals(var2);
               } else if ("dropZoneSeries".equals(var1.p())) {
                  var2 = s(var1);
                  this.d.getPivotOptions().DropZoneSeries = !"0".equals(var2);
               } else if ("dropZonesVisible".equals(var1.p())) {
                  var2 = s(var1);
                  this.d.getPivotOptions().DropZonesVisible = !"0".equals(var2);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
      }
   }

   void c(zcfw var1) throws Exception {
      this.d.setPlotVisibleCells(false);
      boolean var2 = true;
      var1.d();
      boolean var3 = false;

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("title".equals(var1.p())) {
               var3 = true;
               if (!var1.n()) {
                  this.a(var1, this.d.getTitle(), true);
               } else {
                  var1.a();
               }
            } else {
               String var4;
               if ("autoTitleDeleted".equals(var1.p())) {
                  var4 = s(var1);
                  this.d.getTitle().k(!"0".equals(var4));
               } else if ("plotArea".equals(var1.p()) && !var1.n()) {
                  this.j(var1);
               } else if ("view3D".equals(var1.p()) && !var1.n()) {
                  this.h(var1);
               } else if ("floor".equals(var1.p()) && !var1.n()) {
                  this.a(var1, this.d.r().f());
               } else if ("backWall".equals(var1.p()) && !var1.n()) {
                  this.a(var1, this.d.v().f());
               } else if ("sideWall".equals(var1.p()) && !var1.n()) {
                  this.a(var1, this.d.x().f());
               } else if ("legend".equals(var1.p()) && !var1.n()) {
                  var2 = false;
                  this.i(var1);
               } else if ("plotVisOnly".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     this.d.setPlotVisibleCells(zase.ax(var4));
                  } else {
                     this.d.setPlotVisibleCells(true);
                  }
               } else if ("dispBlanksAs".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     this.d.setPlotEmptyCellsType(zase.az(var4));
                  }
               } else if ("pivotFmts".equals(var1.p())) {
                  this.d.a.f = var1.u();
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (var2) {
            this.d.setShowLegend(false);
         }

         if (!this.i && (this.d.getType() == 45 || this.d.getType() == 48)) {
            this.d.setRotationAngle(0);
         }

         if (!var3) {
            this.d.getTitle().k(true);
         }

         return;
      }
   }

   private void h(zcfw var1) throws Exception {
      boolean var2 = true;
      var1.d();
      boolean var3 = false;
      boolean var4 = false;

      while(var1.r() != 4) {
         var1.j();
         if (var1.r() != 1) {
            var1.a();
         } else {
            String var5;
            if ("rotX".equals(var1.p())) {
               var5 = s(var1);
               if (var5 != null) {
                  this.d.setElevation(zase.C(var5));
               }
            } else if ("hPercent".equals(var1.p())) {
               var5 = s(var1);
               if (var5 != null) {
                  this.d.setHeightPercent(zase.E(var5));
                  var2 = false;
               }
            } else if ("rotY".equals(var1.p())) {
               var5 = s(var1);
               if (var5 != null) {
                  this.d.setRotationAngle(zase.C(var5));
                  this.i = true;
               }
            } else if ("depthPercent".equals(var1.p())) {
               var5 = s(var1);
               if (var5 != null) {
                  this.d.setDepthPercent(zase.C(var5));
               }
            } else if ("rAngAx".equals(var1.p())) {
               var3 = true;
               var5 = s(var1);
               this.d.setRightAngleAxes(!"0".equals(var5));
            } else if ("perspective".equals(var1.p())) {
               var4 = true;
               var5 = s(var1);
               if (var5 != null) {
                  this.d.setPerspective((short)(zase.E(var5) / 2));
               }
            } else {
               var1.a();
            }
         }
      }

      var1.h();
      if (!var3 && var4) {
         this.d.setRightAngleAxes(false);
      }

      if (!var2) {
         this.d.setAutoScaling(false);
      }

   }

   private void i(zcfw var1) throws Exception {
      Legend var2 = this.d.getLegend();
      boolean var3 = false;
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("layout".equals(var1.p()) && !var1.n()) {
               zpx var6 = this.t(var1);
               if (var6 != null) {
                  var6.a(this.d, var2);
               }
            } else {
               String var4;
               if ("legendPos".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var2.a(zase.u(var4));
                  }
               } else if ("legendEntry".equals(var1.p()) && !var1.n()) {
                  this.a(var1, var2);
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2.getShapeProperties());
               } else if ("txPr".equals(var1.p()) && !var1.n()) {
                  zqo var5 = this.a(var1, this.d.d());
                  if (var5.f != null) {
                     var5.a(this.d, false);
                     if (var5.f.j() == null) {
                        var5.f.d("Calibri");
                     }

                     var2.c(zase.a(var5.f, this.c));
                  }
               } else if ("overlay".equals(var1.p())) {
                  var3 = true;
                  var4 = s(var1);
                  var2.setOverLay(var4 == null ? false : zase.ax(var4));
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (!var3) {
            var2.setOverLay(false);
         }

         return;
      }
   }

   private void j(zcfw var1) throws Exception {
      var1.d();
      this.d.getSeriesAxis().setVisible(false);

      while(true) {
         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && !var1.n()) {
                  if ("layout".equals(var1.p())) {
                     zpx var4 = this.t(var1);
                     if (var4 != null && var4.a()) {
                        var4.a(this.d);
                     }
                  } else {
                     boolean var2;
                     if (!"barChart".equals(var1.p()) && !"bar3DChart".equals(var1.p())) {
                        if (!"lineChart".equals(var1.p()) && !"line3DChart".equals(var1.p())) {
                           if (!"pieChart".equals(var1.p()) && !"pie3DChart".equals(var1.p())) {
                              if ("ofPieChart".equals(var1.p())) {
                                 this.k(var1);
                              } else if (!"areaChart".equals(var1.p()) && !"area3DChart".equals(var1.p())) {
                                 if ("scatterChart".equals(var1.p())) {
                                    this.l(var1);
                                 } else if ("doughnutChart".equals(var1.p())) {
                                    this.n(var1);
                                 } else if ("radarChart".equals(var1.p())) {
                                    this.o(var1);
                                 } else if ("bubbleChart".equals(var1.p())) {
                                    this.m(var1);
                                 } else if ("stockChart".equals(var1.p())) {
                                    this.p(var1);
                                 } else if (!"surfaceChart".equals(var1.p()) && !"surface3DChart".equals(var1.p())) {
                                    if ("dateAx".equals(var1.p())) {
                                       this.a(var1, "dateAx");
                                    } else if ("catAx".equals(var1.p())) {
                                       this.a(var1, "catAx");
                                    } else if ("valAx".equals(var1.p())) {
                                       this.a(var1, "valAx");
                                    } else if ("serAx".equals(var1.p())) {
                                       this.d.getSeriesAxis().setVisible(true);
                                       this.a(var1, "serAx");
                                    } else if ("spPr".equals(var1.p()) && !var1.n()) {
                                       this.b(var1, this.d.getPlotArea().getShapeProperties());
                                    } else if ("dTable".equals(var1.p())) {
                                       this.d.setShowDataTable(true);
                                       ChartDataTable var3 = this.d.getChartDataTable();
                                       this.a(var1, var3);
                                    } else {
                                       var1.a();
                                    }
                                 } else {
                                    var2 = var1.p().indexOf("3D") != -1;
                                    this.c(var1, var2);
                                 }
                              } else {
                                 var2 = var1.p().indexOf("3D") != -1;
                                 this.a(var1, var2);
                              }
                           } else {
                              var2 = var1.p().indexOf("3D") != -1;
                              this.b(var1, var2);
                           }
                        } else {
                           var2 = var1.p().indexOf("3D") != -1;
                           this.d(var1, var2);
                        }
                     } else {
                        var2 = var1.p().indexOf("3D") != -1;
                        this.e(var1, var2);
                     }
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            if (this.f.size() > 0) {
               this.b();
            }

            return;
         }
      }
   }

   private void k(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      var2.o(false);
      this.d.m().a(var2);
      var2.a(46);
      boolean var3 = false;
      new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var6;
               if ("ofPieType".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     if ("pie".equals(var6)) {
                        var2.a(46);
                     } else if ("bar".equals(var6)) {
                        var2.a(49);
                     }
                  }
               } else if ("gapWidth".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.c(zase.C(var6));
                  }
               } else if ("splitType".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.g(zase.Q(var6));
                  }
               } else if ("splitPos".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.a(zase.B(var6));
                  }
               } else if ("secondPieSize".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.f(zase.C(var6));
                  }
               } else if ("serLines".equals(var1.p())) {
                  this.a(var1, var2.S());
               } else if ("varyColors".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3 = !"0".equals(var6);
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var2);
               } else if ("firstSliceAng".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.d(zase.C(var6));
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var5 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var5, (Series)null, false);
                  this.d.getNSeries().a(var2, var5);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         this.d.b(var2.j());
         var2.j(var3);
         return;
      }
   }

   private void a(zcfw var1, boolean var2) throws Exception {
      ziz var3 = new ziz(this.d.m());
      this.d.m().a(var3);
      var3.a(0);
      String var4 = "standard";
      StringBuilder var5 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("grouping".equals(var1.p())) {
               var4 = s(var1);
            } else {
               String var6;
               if ("varyColors".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.j(!"0".equals(var6));
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var3);
               } else if ("dropLines".equals(var1.p())) {
                  var3.f(true);
                  this.a(var1, var3.T());
               } else if ("axId".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     if (var5.length() > 0) {
                        var5.append(" ");
                     }

                     var5.append(var6);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var7 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var7, (Series)null, false);
                  this.d.getNSeries().a(var3, var7);
               } else if ("gapDepth".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     this.d.setGapDepth(zase.C(var6));
                  }
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         var3.a(zase.a(var4, var2));
         this.e.put(var3, com.aspose.cells.b.a.zr.a(var5));
         this.d.b(var3.j());
         return;
      }
   }

   private void b(zcfw var1, boolean var2) throws Exception {
      ziz var3 = new ziz(this.d.m());
      this.d.m().a(var3);
      var3.a(44);
      var3.o(false);
      boolean var4 = false;
      var1.d();
      ArrayList var5 = new ArrayList();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var10;
               if ("varyColors".equals(var1.p())) {
                  var10 = s(var1);
                  var4 = zase.b(var10, false);
               } else if ("ser".equals(var1.p())) {
                  Series var11 = this.b(var1, var3);
                  com.aspose.cells.b.a.a.ze.a(var5, (Object)var11);
               } else if ("firstSliceAng".equals(var1.p())) {
                  var10 = s(var1);
                  if (var10 != null) {
                     var3.d(zase.C(var10));
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var6 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var6, (Series)null, false);
                  this.d.getNSeries().a(var3, var6);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         boolean var12 = false;
         SeriesCollection var7 = this.d.getNSeries();

         for(int var8 = 0; var8 < var7.getCount(); ++var8) {
            Series var9 = var7.get(var8);
            if (var9.getExplosion() > 0) {
               var12 = true;
               break;
            }
         }

         if (var12) {
            if (var2) {
               var3.b(48);
            } else {
               var3.b(47);
            }
         } else if (var2) {
            var3.b(45);
         } else {
            var3.b(44);
         }

         this.d.b(var3.j());
         var3.j(var4);
         return;
      }
   }

   private void l(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      this.d.m().a(var2);
      var2.a(63);
      boolean var3 = false;
      String var4 = "marker";
      StringBuilder var5 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("scatterStyle".equals(var1.p())) {
               var4 = s(var1);
            } else {
               String var7;
               if ("varyColors".equals(var1.p())) {
                  var7 = s(var1);
                  if (var7 != null) {
                     var2.j(!"0".equals(var7));
                  }
               } else if ("ser".equals(var1.p())) {
                  Series var8 = this.b(var1, var2);
                  if (!var3 && var8.getBorder().isVisible()) {
                     var3 = true;
                  }
               } else if ("axId".equals(var1.p())) {
                  var7 = s(var1);
                  if (var7 != null) {
                     if (var5.length() > 0) {
                        var5.append(" ");
                     }

                     var5.append(var7);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var6 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var6, (Series)null, false);
                  this.d.getNSeries().a(var2, var6);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         int var9 = zase.R(var4);
         switch(var9) {
         case 60:
         case 61:
         case 62:
         default:
            break;
         case 63:
            if (!var3) {
               var9 = 60;
            }
            break;
         case 64:
            if (!var3) {
               var9 = 60;
            }
         }

         var2.b(var9);
         this.e.put(var2, com.aspose.cells.b.a.zr.a(var5));
         this.d.b(var9);
         return;
      }
   }

   private void m(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      this.d.m().a(var2);
      var2.a(12);
      StringBuilder var3 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var8;
               if ("bubbleScale".equals(var1.p())) {
                  var8 = s(var1);
                  if (var8 != null) {
                     var2.h(zase.C(var8));
                  }
               } else if ("varyColors".equals(var1.p())) {
                  var8 = s(var1);
                  if (var8 != null) {
                     var2.j(!"0".equals(var8));
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var2);
               } else if ("showNegBubbles".equals(var1.p())) {
                  var8 = s(var1);
                  var2.l(zase.ax(var8));
               } else if ("sizeRepresents".equals(var1.p())) {
                  var8 = s(var1);
                  if ("w".equals(var8)) {
                     var2.i(1);
                  }
               } else if ("axId".equals(var1.p())) {
                  var8 = s(var1);
                  if (var8 != null) {
                     if (var3.length() > 0) {
                        var3.append(" ");
                     }

                     var3.append(var8);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var4 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var4, (Series)null, false);
                  this.d.getNSeries().a(var2, var4);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         boolean var9 = true;
         SeriesCollection var5 = this.d.getNSeries();

         for(int var6 = 0; var6 < var5.getCount(); ++var6) {
            Series var7 = var5.get(var6);
            if (var7.s() == var2 && !var7.getHas3DEffect()) {
               var9 = false;
               break;
            }
         }

         if (var9) {
            var2.a(13);
         } else {
            var2.a(12);
         }

         this.e.put(var2, com.aspose.cells.b.a.zr.a(var3));
         this.d.b(var2.j());
         return;
      }
   }

   private void n(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      this.d.m().a(var2);
      var2.a(44);
      var2.o(false);
      boolean var3 = false;
      StringBuilder var4 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var9;
               if ("varyColors".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var3 = !"0".equals(var9);
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var2);
               } else if ("firstSliceAng".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var2.d(zase.C(var9));
                  }
               } else if ("holeSize".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var2.j(zase.C(var9));
                  }
               } else if ("axId".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     if (var4.length() > 0) {
                        var4.append(" ");
                     }

                     var4.append(var9);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var5 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var5, (Series)null, false);
                  this.d.getNSeries().a(var2, var5);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         boolean var10 = false;
         SeriesCollection var6 = this.d.getNSeries();

         for(int var7 = 0; var7 < var6.getCount() && !var10; ++var7) {
            Series var8 = var6.get(var7);
            if (var8.getExplosion() > 0) {
               var10 = true;
            }
         }

         if (var10) {
            var2.b(36);
         } else {
            var2.b(35);
         }

         var2.j(var3);
         this.d.b(var2.j());
         return;
      }
   }

   private void o(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      this.d.m().a(var2);
      var2.a(60);
      String var3 = "standard";
      StringBuilder var4 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("radarStyle".equals(var1.p())) {
               var3 = s(var1);
               if (var3 != null) {
                  var2.a(zase.S(var3));
               }
            } else {
               String var6;
               if ("varyColors".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var2.j(!"0".equals(var6));
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var2);
               } else if ("axId".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     if (var4.length() > 0) {
                        var4.append(" ");
                     }

                     var4.append(var6);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var5 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var5, (Series)null, false);
                  this.d.getNSeries().a(var2, var5);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         var2.a(zase.S(var3));
         this.e.put(var2, com.aspose.cells.b.a.zr.a(var4));
         this.d.b(var2.j());
         return;
      }
   }

   private void p(zcfw var1) throws Exception {
      ziz var2 = new ziz(this.d.m());
      this.d.m().a(var2);
      var2.a(37);
      StringBuilder var3 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("ser".equals(var1.p())) {
               this.b(var1, var2);
            } else if ("hiLowLines".equals(var1.p())) {
               var2.b(true);
               this.a(var1, var2.U());
            } else if ("upDownBars".equals(var1.p())) {
               var2.h(true);
               this.a(var1, var2);
            } else if ("axId".equals(var1.p())) {
               String var5 = s(var1);
               if (var5 != null) {
                  if (var3.length() > 0) {
                     var3.append(" ");
                  }

                  var3.append(var5);
               }
            } else if ("dLbls".equals(var1.p()) && !var1.n()) {
               DataLabels var4 = new DataLabels(this.d, this.d);
               this.a(var1, (DataLabels)var4, (Series)null, false);
               this.d.getNSeries().a(var2, var4);
            } else {
               var1.a();
            }
         }

         var1.h();
         this.e.put(var2, com.aspose.cells.b.a.zr.a(var3));
         this.d.b(var2.j());
         return;
      }
   }

   private void c(zcfw var1, boolean var2) throws Exception {
      ziz var3 = new ziz(this.d.m());
      this.d.m().a(var3);
      var3.a(69);
      boolean var4 = false;
      StringBuilder var5 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var7;
               if ("wireframe".equals(var1.p())) {
                  var7 = s(var1);
                  if (var7 != null) {
                     var4 = !"0".equals(var7);
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var3);
               } else if ("axId".equals(var1.p())) {
                  var7 = s(var1);
                  if (var7 != null) {
                     if (var5.length() > 0) {
                        var5.append(" ");
                     }

                     var5.append(var7);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var6 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var6, (Series)null, false);
                  this.d.getNSeries().a(var3, var6);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (var4) {
            if (var2) {
               var3.a(70);
            } else {
               var3.a(72);
            }
         } else if (var2) {
            var3.a(69);
         } else {
            var3.a(71);
         }

         this.e.put(var3, com.aspose.cells.b.a.zr.a(var5));
         this.d.b(var3.j());
         return;
      }
   }

   private void d(zcfw var1, boolean var2) throws Exception {
      ziz var3 = new ziz(this.d.m());
      this.d.m().a(var3);
      var3.a(40);
      if (var2) {
         var3.a(43);
      }

      String var4 = "standard";
      StringBuilder var5 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("grouping".equals(var1.p())) {
               var4 = s(var1);
            } else {
               String var6;
               if ("varyColors".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.j(!"0".equals(var6));
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var3);
               } else if ("dropLines".equals(var1.p())) {
                  var3.f(true);
                  this.a(var1, var3.T());
               } else if ("hiLowLines".equals(var1.p())) {
                  var3.b(true);
                  this.a(var1, var3.U());
               } else if ("upDownBars".equals(var1.p())) {
                  var3.h(true);
                  this.a(var1, var3);
               } else if ("axId".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     if (var5.length() > 0) {
                        var5.append(" ");
                     }

                     var5.append(var6);
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var10 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var10, (Series)null, false);
                  this.d.getNSeries().a(var3, var10);
               } else if ("gapDepth".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     this.d.setGapDepth(zase.C(var6));
                  }
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         boolean var11 = false;
         SeriesCollection var7 = this.d.getNSeries();

         for(int var8 = 0; var8 < var7.getCount() && !var11; ++var8) {
            Series var9 = var7.get(var8);
            if (var9.s() == var3) {
               if (var9.v() == null) {
                  var11 = true;
               } else if (var9.v().getMarkerStyle() != 5) {
                  var11 = true;
               }
            }
         }

         if (var2) {
            var3.a(43);
         } else {
            var3.a(zase.a(var11, var4));
         }

         this.e.put(var3, com.aspose.cells.b.a.zr.a(var5));
         this.d.b(var3.j());
         return;
      }
   }

   private void a(zcfw var1, ziz var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("gapWidth".equals(var1.p())) {
               String var3 = s(var1);
               if (var3 != null) {
                  var2.c(zase.C(var3));
               }
            } else if ("upBars".equals(var1.p())) {
               this.a(var1, var2.u().c());
            } else if ("downBars".equals(var1.p())) {
               this.a(var1, var2.v().c());
            } else {
               var1.a();
            }
         }

         var1.h();
      }
   }

   private boolean a(zcfw var1, ShapePropertyCollection var2) throws Exception {
      if (var1.n()) {
         var1.a();
         return false;
      } else {
         boolean var3 = false;
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && "spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2);
                  var3 = true;
               } else {
                  var1.a();
               }
            }

            var1.h();
            return var3;
         }
      }
   }

   private void e(zcfw var1, boolean var2) throws Exception {
      ziz var3 = new ziz(this.d.m());
      this.d.m().a(var3);
      var3.a(6);
      String var4 = "col";
      String var5 = "clustered";
      String var6 = "box";
      StringBuilder var7 = new StringBuilder(20);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("barDir".equals(var1.p())) {
               var4 = s(var1);
            } else if ("grouping".equals(var1.p())) {
               var5 = s(var1);
            } else {
               String var9;
               if ("varyColors".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var3.j(!"0".equals(var9));
                  }
               } else if ("ser".equals(var1.p())) {
                  this.b(var1, var3);
               } else if ("overlap".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var3.e(zase.C(var9));
                  }
               } else if ("gapWidth".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var3.c(zase.C(var9));
                  }
               } else if ("gapDepth".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     this.d.setGapDepth(zase.C(var9));
                  }
               } else if ("axId".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     if (var7.length() > 0) {
                        var7.append(" ");
                     }

                     var7.append(var9);
                  }
               } else if ("shape".equals(var1.p())) {
                  var9 = s(var1);
                  if (var9 != null) {
                     var6 = var9;
                  }
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  DataLabels var8 = new DataLabels(this.d, this.d);
                  this.a(var1, (DataLabels)var8, (Series)null, false);
                  this.d.getNSeries().a(var3, var8);
               } else if ("serLines".equals(var1.p())) {
                  this.a(var1, var3.S());
                  var3.e(true);
               } else if ("extLst".equals(var1.p())) {
                  var3.a = var1.u();
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         var3.b(zase.a(var4, var5, var2, var6));
         if (var2 && var6 != null) {
            if (var3.d() == null) {
               var3.a(new zor(var3));
            }

            var3.d().b(zase.T(var6));
         }

         this.e.put(var3, com.aspose.cells.b.a.zr.a(var7));
         this.d.b(var3.j());
         return;
      }
   }

   private Series b(zcfw var1, ziz var2) throws Exception {
      Series var3 = new Series(this.c, this.d.getNSeries(), 0);
      var3.a(var2);
      String var4 = null;
      String var5 = null;
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("idx".equals(var1.p())) {
               var4 = s(var1);
            } else if ("order".equals(var1.p())) {
               var5 = s(var1);
            } else if ("tx".equals(var1.p())) {
               this.j(var1, var3);
            } else {
               String var6;
               if ("explosion".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.setExplosion(zase.C(var6));
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var3.getShapeProperties());
               } else if ("extLst".equals(var1.p())) {
                  this.a(var1, var3);
               } else if ("invertIfNegative".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.getArea().setInvertIfNegative(!"0".equals(var6));
                  }
               } else if ("marker".equals(var1.p()) && !var1.n()) {
                  var3.setShadow(this.a(var1, var3.getMarker()));
               } else if ("dPt".equals(var1.p()) && !var1.n()) {
                  this.i(var1, var3);
               } else if ("dLbls".equals(var1.p()) && !var1.n()) {
                  this.a(var1, var3.getDataLabels(), var3, false);
               } else if ("trendline".equals(var1.p()) && !var1.n()) {
                  this.h(var1, var3);
               } else if ("errBars".equals(var1.p()) && !var1.n()) {
                  this.g(var1, var3);
               } else if ("cat".equals(var1.p()) && !var1.n()) {
                  var3.b(this.q(var1));
               } else if ("val".equals(var1.p()) && !var1.n()) {
                  var3.a(this.q(var1));
               } else if ("xVal".equals(var1.p()) && !var1.n()) {
                  var3.b(this.q(var1));
               } else if ("yVal".equals(var1.p()) && !var1.n()) {
                  var3.a(this.q(var1));
               } else if ("bubbleSize".equals(var1.p()) && !var1.n()) {
                  var3.c(this.q(var1));
               } else if ("smooth".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.setSmooth(!"0".equals(var6));
                  }
               } else if ("bubble3D".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.setHas3DEffect(!"0".equals(var6));
                  }
               } else if ("shape".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.c(zase.T(var6));
                  }
               } else if ("pictureOptions".equals(var1.p())) {
                  this.f(var1, var3);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (var4 != null) {
            var3.a(zase.C(var4));
         }

         if (var5 != null) {
            int var7 = zase.C(var5);
            var3.e(var7);
            this.d.getNSeries().a(var3);
         } else {
            this.d.getNSeries().a(var3);
         }

         com.aspose.cells.b.a.a.ze.a(this.h, (Object)var3);
         return var3;
      }
   }

   private void a(zcfw var1, Series var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(zass.a(var1)) {
            if ("ext".equals(var1.p())) {
               this.b(var1, var2);
            } else {
               var1.a();
            }
         }

      }
   }

   private void b(zcfw var1, Series var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         String var3 = var1.a("uri");
         switch(k.a(var3)) {
         case 1:
         case 2:
            var1.d();

            while(zass.a(var1)) {
               if ("invertSolidFillFmt".equals(var1.p())) {
                  this.d(var1, var2);
               } else if ("datalabelsRange".equals(var1.p())) {
                  this.c(var1, var2);
               } else {
                  var1.a();
               }
            }

            return;
         default:
            com.aspose.cells.b.a.a.ze.a(var2.a.b(), (Object)var1.u());
         }
      }
   }

   private void c(zcfw var1, Series var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();
         zik var3 = zin.a(this.c, this.d.getWorksheet());

         while(zass.a(var1)) {
            if ("f".equals(var1.p())) {
               String var4 = var1.i();
               if (var4 != null && var4.charAt(0) != '(' && var4.indexOf(33) == -1 && var4.indexOf(44) != -1 && var4.charAt(0) != '{') {
                  var4 = "{" + var4 + "}";
               }

               String var5 = var4;
               if (var4.indexOf("[0]!") != -1) {
                  var5 = var4.substring(4);
               }

               try {
                  ((zim)var3).c(var5);
               } catch (Exception var7) {
                  ;
               }
            } else if ("dlblRangeCache".equals(var1.p())) {
               this.a(var1, var3, true, false);
            } else {
               var1.a();
            }
         }

         var2.getDataLabels().n = var3;
      }
   }

   private void d(zcfw var1, Series var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("spPr".equals(var1.p())) {
               this.e(var1, var2);
            } else {
               var1.a();
            }
         }

         var1.h();
      }
   }

   private void e(zcfw var1, Series var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("solidFill".equals(var1.p())) {
               zakp var3 = zaiq.a(var1);
               if (!var3.a() && var2.getArea().getFillFormat().getType() == 2) {
                  var2.getArea().getFillFormat().getSolidFill().b = var3;
               }
            } else {
               var1.a();
            }
         }

         var1.h();
      }
   }

   private void f(zcfw var1, Series var2) throws Exception {
      TextureFill var3 = var2.getArea().getFillFormat().getTextureFill();
      if (var3.getPicFormatOption() == null) {
         var3.setPicFormatOption(new PicFormatOption());
      }

      PicFormatOption var4 = var3.getPicFormatOption();
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var5;
               if ("pictureFormat".equals(var1.p())) {
                  var5 = s(var1);
                  if (var5 != null) {
                     var4.setType(zase.ar(var5));
                  }
               } else if ("pictureStackUnit".equals(var1.p())) {
                  var5 = s(var1);
                  if (var5 != null) {
                     var4.setScale(zase.B(var5));
                  }
               } else if ("applyToFront".equals(var1.p())) {
                  var5 = s(var1);
                  var4.b(!"0".equals(var5));
               } else if ("applyToSides".equals(var1.p())) {
                  var5 = s(var1);
                  var4.a(!"0".equals(var5));
               } else if ("applyToEnd".equals(var1.p())) {
                  var5 = s(var1);
                  var4.c(!"0".equals(var5));
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
      }
   }

   private void a(zcfw var1, ChartPoint var2) throws Exception {
      TextureFill var3 = var2.getArea().getFillFormat().getTextureFill();
      if (var3.getPicFormatOption() == null) {
         var3.setPicFormatOption(new PicFormatOption());
      }

      PicFormatOption var4 = var3.getPicFormatOption();
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var5;
               if ("pictureFormat".equals(var1.p())) {
                  var5 = s(var1);
                  if (var5 != null) {
                     var4.setType(zase.ar(var5));
                  }
               } else if ("pictureStackUnit".equals(var1.p())) {
                  var5 = s(var1);
                  if (var5 != null) {
                     var4.setScale(zase.B(var5));
                  }
               } else if ("applyToFront".equals(var1.p())) {
                  var5 = s(var1);
                  var4.b(!"0".equals(var5));
               } else if ("applyToSides".equals(var1.p())) {
                  var5 = s(var1);
                  var4.a(!"0".equals(var5));
               } else if ("applyToEnd".equals(var1.p())) {
                  var5 = s(var1);
                  var4.c(!"0".equals(var5));
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
      }
   }

   private void g(zcfw var1, Series var2) throws Exception {
      ErrorBar var3 = null;
      if (var2.x() == null) {
         var3 = var2.getYErrorBar();
      } else {
         var3 = var2.getXErrorBar();
      }

      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var4;
               if ("errDir".equals(var1.p())) {
                  var4 = s(var1);
                  if ("y".equals(var4)) {
                     var3 = var2.getYErrorBar();
                  } else {
                     var3 = var2.getXErrorBar();
                  }
               } else if ("errBarType".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.a(zase.N(var4));
                  }
               } else if ("errValType".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setType(zase.O(var4));
                  }
               } else if ("plus".equals(var1.p()) && !var1.n()) {
                  var3.a(this.q(var1));
               } else if ("minus".equals(var1.p()) && !var1.n()) {
                  var3.b(this.q(var1));
               } else if ("val".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setAmount(zase.B(var4));
                  }
               } else if ("noEndCap".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setShowMarkerTTop("0".equals(var4));
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var3.e());
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         return;
      }
   }

   private zik q(zcfw var1) throws Exception {
      zik var2 = null;
      var1.d();

      while(zass.a(var1)) {
         switch(k.a(var1.p())) {
         case 3:
         case 4:
         case 5:
            var2 = this.r(var1);
            break;
         case 6:
            var2 = zin.a(this.c, this.d.getWorksheet());
            this.a(var1, var2, false, true);
            break;
         case 7:
            var2 = zin.a(this.c, this.d.getWorksheet());
            this.a(var1, var2, true, true);
            break;
         default:
            var1.a();
         }
      }

      return var2;
   }

   private zik r(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
         return null;
      } else {
         zik var2 = zin.a(this.c, this.d.getWorksheet());
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && !var1.n()) {
                  switch(k.a(var1.p())) {
                  case 8:
                     String var3 = var1.i();
                     if (var3.charAt(0) != '(' && var3.indexOf(33) == -1 && var3.indexOf(44) != -1 && var3.charAt(0) != '{') {
                        var3 = "{" + var3 + "}";
                     }

                     String var4 = var3;
                     if (var3.indexOf("[0]!") != -1) {
                        var4 = var3.substring(4);
                     }

                     try {
                        ((zim)var2).c(var4);
                     } catch (Exception var6) {
                        ;
                     }
                     break;
                  case 9:
                     this.a(var1, var2, false, false);
                     break;
                  case 10:
                     this.a(var1, var2, true, false);
                     break;
                  case 11:
                     this.a(var1, var2);
                     break;
                  default:
                     var1.a();
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            return var2;
         }
      }
   }

   private void a(zcfw var1, zik var2) throws Exception {
      var1.d();
      boolean var3 = false;
      ArrayList var4 = new ArrayList();
      int var5 = -1;

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               int var6;
               if ("lvl".equals(var1.p())) {
                  ++var5;
                  if (var1.n()) {
                     var1.a();
                  } else {
                     var1.d();
                     var6 = -1;

                     while(true) {
                        while(var1.r() != 4) {
                           var1.j();
                           if (var1.r() != 1) {
                              var1.a();
                           } else if (!"pt".equals(var1.p())) {
                              var1.a();
                           } else {
                              String var7 = null;
                              int var8 = com.aspose.cells.b.a.zo.a(var1.a("idx"));
                              var1.d();

                              while(true) {
                                 while(var1.r() != 4) {
                                    var1.j();
                                    if (var1.r() == 1 && "v".equals(var1.p()) && !var1.n()) {
                                       var7 = var1.i();
                                    } else {
                                       var1.a();
                                    }
                                 }

                                 var1.h();
                                 int var9;
                                 if (var8 >= var4.size()) {
                                    for(var9 = var4.size() - 1; var9 < var8; ++var9) {
                                       com.aspose.cells.b.a.a.ze.a(var4, (Object)"");
                                    }
                                 }

                                 if (var8 - var6 > 1) {
                                    for(var9 = var6 + 1; var9 < var8; ++var9) {
                                       if (var5 > 0) {
                                          var4.set(var9, (String)var4.get(var9) + "\n");
                                       }
                                    }
                                 }

                                 if (var5 > 0) {
                                    var4.set(var8, (String)var4.get(var8) + "\n");
                                 }

                                 if (var7 != null) {
                                    var4.set(var8, (String)var4.get(var8) + var7);
                                 }

                                 var6 = var8;
                                 break;
                              }
                           }
                        }

                        var1.h();
                        break;
                     }
                  }
               } else if (!"ptCount".equals(var1.p())) {
                  var1.a();
               } else {
                  int var10 = com.aspose.cells.b.a.zo.a(var1.a("val"));

                  for(var6 = 0; var6 < var10; ++var6) {
                     com.aspose.cells.b.a.a.ze.a(var4, (Object)"");
                  }

                  var1.a();
               }
            }
         }

         var1.h();
         ArrayList var11 = new ArrayList();

         for(int var12 = 0; var12 < var4.size(); ++var12) {
            com.aspose.cells.b.a.a.ze.a(var11, (Object)this.a((String)var4.get(var12), '\n'));
         }

         var2.a(var11);
         return;
      }
   }

   private String a(String var1, char var2) {
      while(var1.length() > 0 && var1.charAt(var1.length() - 1) == var2) {
         var1 = var1.substring(0, 0 + (var1.length() - 1));
      }

      return var1;
   }

   private void a(zcfw var1, zik var2, boolean var3, boolean var4) throws Exception {
      var1.d();
      boolean var5 = false;
      ArrayList var6 = new ArrayList();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("pt".equals(var1.p())) {
               Object var11 = null;
               int var8 = com.aspose.cells.b.a.zo.a(var1.a("idx"));
               var1.d();

               while(true) {
                  while(var1.r() != 4) {
                     var1.j();
                     if (var1.r() == 1 && "v".equals(var1.p()) && !var1.n()) {
                        String var9 = var1.i();
                        var11 = var9;
                        if (!var3 && zapb.b(var9)) {
                           var11 = zase.B(var9);
                        }
                     } else {
                        var1.a();
                     }
                  }

                  var1.h();
                  if (var8 >= var6.size()) {
                     for(int var12 = var6.size() - 1; var12 < var8; ++var12) {
                        com.aspose.cells.b.a.a.ze.a(var6, (Object)"");
                     }
                  }

                  var6.set(var8, var11);
                  break;
               }
            } else if ("formatCode".equals(var1.p())) {
               var2.a(var1.i());
            } else if (!"ptCount".equals(var1.p())) {
               var1.a();
            } else {
               int var10 = com.aspose.cells.b.a.zo.a(var1.a("val"));

               for(int var7 = 0; var7 < var10; ++var7) {
                  com.aspose.cells.b.a.a.ze.a(var6, (Object)"");
               }

               var1.a();
            }
         }

         var1.h();
         var2.a(var6);
         if (var4 || var2.f() == null) {
            if (var3) {
               var2.a(6);
            } else {
               var2.a(1);
            }
         }

         return;
      }
   }

   private void h(zcfw var1, Series var2) throws Exception {
      Trendline var3 = new Trendline(var2);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("name".equals(var1.p())) {
               var3.setName(var1.i());
            } else if ("spPr".equals(var1.p()) && !var1.n()) {
               this.b(var1, var3.e());
            } else {
               String var4;
               if ("trendlineType".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.a(zase.M(var4));
                  }
               } else if ("order".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setOrder(zase.C(var4));
                  }
               } else if ("period".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.o(zase.C(var4));
                  }
               } else if ("forward".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setForward(zase.B(var4));
                  }
               } else if ("backward".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.a(zase.B(var4));
                  }
               } else if ("intercept".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setIntercept(zase.B(var4));
                  }
               } else if ("dispEq".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setDisplayEquation(!"0".equals(var4));
                  }
               } else if ("dispRSqr".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var3.setDisplayRSquared(!"0".equals(var4));
                  }
               } else if ("trendlineLbl".equals(var1.p())) {
                  this.a(var1, var3.getDataLabels());
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         var2.getTrendLines().a(var3);
         return;
      }
   }

   private void a(zcfw var1, DataLabels var2) throws Exception {
      var1.d();
      boolean var3 = false;
      boolean var4 = false;

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("numFmt".equals(var1.p())) {
               var3 = true;
               String var7 = var1.a("formatCode");
               if (var7 != null) {
                  var2.c(var7);
               }

               var7 = var1.a("sourceLinked");
               if (var7 != null) {
                  var2.m(!"0".equals(var7));
               }

               var1.a();
            } else {
               zqo var6;
               if ("txPr".equals(var1.p())) {
                  var4 = true;
                  var6 = this.a(var1, this.d.d());
                  if (var2 != null) {
                     var6.a(var2, this.c);
                  }
               } else if ("tx".equals(var1.p())) {
                  var6 = this.v(var1);
                  if (var6 != null && var2 != null) {
                     var6.a(var2, this.c);
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2.getShapeProperties());
               } else if ("layout".equals(var1.p())) {
                  zpx var5 = this.t(var1);
                  if (var5 != null) {
                     var5.a(this.d, var2);
                  }
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (var2 == null) {
            this.a("trendlineLbl");
         } else if (!var3 && var4) {
            var2.n(true);
         }

         return;
      }
   }

   private void a(zcfw var1, DataLabels var2, Series var3, boolean var4) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();
         ArrayList var5 = new ArrayList();
         ArrayList var6 = new ArrayList();
         boolean var7 = false;
         boolean var8 = false;
         boolean var9 = false;
         zqo var10 = null;

         while(true) {
            DataLabels var14;
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() != 1) {
                  var1.a();
               } else {
                  String var11;
                  if ("dLbl".equals(var1.p()) && var3 != null) {
                     var11 = var1.b();
                     var14 = this.a(new zcfw(var11, false), (Series)var3, (DataLabels)null, false);
                     com.aspose.cells.b.a.a.ze.a(var6, (Object)var14);
                     com.aspose.cells.b.a.a.ze.a(var5, (Object)var11);
                  } else if ("numFmt".equals(var1.p())) {
                     var8 = true;
                     var11 = var1.a("formatCode");
                     if (var11 != null) {
                        var2.c(var11);
                     }

                     var11 = var1.a("sourceLinked");
                     if (var11 != null) {
                        var2.m(!"0".equals(var11));
                     }

                     var1.a();
                  } else if ("spPr".equals(var1.p()) && !var1.n()) {
                     var7 = true;
                     this.b(var1, var2.getShapeProperties());
                  } else if ("txPr".equals(var1.p())) {
                     var10 = this.a(var1, this.d.d());
                     var10.a(var2, this.c);
                  } else if ("dLblPos".equals(var1.p())) {
                     var11 = s(var1);
                     if (var11 != null) {
                        var2.n(zase.K(var11));
                     }
                  } else if ("delete".equals(var1.p())) {
                     var11 = s(var1);
                     if (var11 != null) {
                        var2.setDeleted(zase.ax(var11));
                     }
                  } else {
                     boolean var12;
                     if ("showLegendKey".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null) {
                           var12 = !"0".equals(var11);
                           var2.l(var12);
                        }
                     } else if ("showVal".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null) {
                           var12 = !"0".equals(var11);
                           var2.a((int)1, var12);
                        }
                     } else if ("showBubbleSize".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null && var2 != null) {
                           var2.setShowBubbleSize(!"0".equals(var11));
                        }
                     } else if ("showCatName".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null) {
                           var12 = !"0".equals(var11);
                           var2.a((int)3, var12);
                        }
                     } else if ("showSerName".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null) {
                           var12 = !"0".equals(var11);
                           var2.a((int)5, var12);
                        }
                     } else if ("showPercent".equals(var1.p())) {
                        var11 = s(var1);
                        if (var11 != null) {
                           var12 = !"0".equals(var11);
                           var2.a((int)2, var12);
                        }
                     } else if ("separator".equals(var1.p())) {
                        var1.a(1);
                        var11 = var1.i();
                        if (var11 != null) {
                           var9 = true;
                           var2.setSeparatorValue(var11);
                        }

                        var1.a(0);
                     } else if ("showLeaderLines".equals(var1.p()) && var3 != null) {
                        var11 = s(var1);
                        var3.setHasLeaderLines(zase.ax(var11));
                     } else if ("showDataLabelsRange".equals(var1.p())) {
                        var11 = s(var1);
                        var2.setShowCellRange(zase.b(var11, false));
                     } else if ("leaderLines".equals(var1.p())) {
                        this.a(var1, var3.s().V());
                     } else if ("extLst".equals(var1.p())) {
                        if (var1.n()) {
                           var1.a();
                        } else {
                           var1.d();

                           while(zass.a(var1)) {
                              if ("ext".equals(var1.p())) {
                                 var11 = var1.a("uri");
                                 if ("{CE6537A1-D6FC-4f65-9D91-7224C49458BB}".equals(var11)) {
                                    this.a(var1, var2, var3, true);
                                 } else {
                                    if (var2.m == null) {
                                       var2.m = new ArrayList();
                                    }

                                    com.aspose.cells.b.a.a.ze.a(var2.m, (Object)var1.u());
                                 }
                              } else {
                                 var1.a();
                              }
                           }
                        }
                     } else {
                        var1.a();
                     }
                  }
               }
            }

            if (!var4) {
               for(int var15 = 0; var15 < var6.size(); ++var15) {
                  var14 = (DataLabels)var6.get(var15);
                  String var13 = (String)var5.get(var15);
                  this.a(var13, var2, var14, var7, var8, var9, var10);
               }
            }

            var1.h();
            return;
         }
      }
   }

   private DataLabels a(zcfw var1, Series var2, DataLabels var3, boolean var4) throws Exception {
      ChartPoint var5 = null;
      var1.d();
      boolean var6 = false;
      boolean var7 = false;

      while(true) {
         while(zass.a(var1)) {
            String var8;
            if ("idx".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null) {
                  int var9 = zase.C(var8);
                  var5 = var2.getPoints().a(var9);
                  var3 = var5.getDataLabels();
               }
            } else if ("delete".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null) {
                  var3.setDeleted(zase.ax(var8));
               } else {
                  var3.setDeleted(true);
               }
            } else if ("numFmt".equals(var1.p())) {
               var6 = true;
               var3.n(true);
               var8 = var1.a("formatCode");
               if (var8 != null) {
                  var3.c(var8);
               }

               var8 = var1.a("sourceLinked");
               if (var8 != null) {
                  var3.m(!"0".equals(var8));
               }

               var1.a();
            } else if ("showLegendKey".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowLegendKey(!"0".equals(var8));
               }
            } else if ("showVal".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowValue(!"0".equals(var8));
               }
            } else if ("showBubbleSize".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowBubbleSize(!"0".equals(var8));
               }
            } else if ("showCatName".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowCategoryName(!"0".equals(var8));
               }
            } else if ("showSerName".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowSeriesName(!"0".equals(var8));
               }
            } else if ("showPercent".equals(var1.p())) {
               var8 = s(var1);
               if (var8 != null && var3 != null) {
                  var3.setShowPercentage(!"0".equals(var8));
               }
            } else if ("showDataLabelsRange".equals(var1.p())) {
               var8 = s(var1);
               if (var3 != null) {
                  var3.setShowCellRange(zase.b(var8, false));
               }
            } else if ("separator".equals(var1.p())) {
               var1.a(1);
               var8 = var1.i();
               if (var8 != null && var3 != null) {
                  var3.setSeparatorValue(var8);
               }

               var1.a(0);
            } else {
               zqo var11;
               if ("txPr".equals(var1.p())) {
                  var7 = true;
                  var11 = this.a(var1, this.d.d());
                  if (var3 != null) {
                     var11.a(var3, this.c);
                  }
               } else if ("tx".equals(var1.p())) {
                  var11 = this.v(var1);
                  if (var11 != null && var3 != null) {
                     var11.a(var3, this.c);
                  }
               } else if ("dLblPos".equals(var1.p())) {
                  var8 = s(var1);
                  if (var8 != null) {
                     var3.n(zase.K(var8));
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var3.getShapeProperties());
               } else if ("layout".equals(var1.p()) && var2 != null && !var4) {
                  zpx var10 = this.t(var1);
                  if (var10 != null) {
                     var10.a(this.d, var3);
                  }
               } else if ("extLst".equals(var1.p())) {
                  var1.d();

                  while(zass.a(var1)) {
                     if ("ext".equals(var1.p())) {
                        var8 = var1.a("uri");
                        if ("{CE6537A1-D6FC-4f65-9D91-7224C49458BB}".equals(var8)) {
                           this.a(var1, var2, var3, true);
                        } else {
                           var1.a();
                        }
                     } else {
                        var1.a();
                     }
                  }
               } else {
                  var1.a();
               }
            }
         }

         if (var4) {
            return var3;
         }

         if (var3 == null) {
            this.a("dLbl");
         } else if (!var6 && var7) {
            var3.n(true);
         }

         return var3;
      }
   }

   private void a(String var1, DataLabels var2, DataLabels var3, boolean var4, boolean var5, boolean var6, zqo var7) {
      if (var1.indexOf("txPr") < 0 && var1.indexOf("spPr") < 0 && var4) {
         var3.b(var2, (CopyOptions)null);
      }

      if (var1.indexOf("txPr") < 0 && var1.indexOf("spPr") < 0 && var7 != null) {
         var7.a(var3, this.c);
      }

      if (var1.indexOf("txPr") < 0 && var1.indexOf("spPr") < 0 && var1.indexOf("numFmt") < 0 && var5) {
         var3.a(var2);
      }

      if (var1.indexOf("showLegendKey") < 0 && var1.indexOf("showVal") < 0 && var1.indexOf("showBubbleSize") < 0 && var1.indexOf("showCatName") < 0 && var1.indexOf("showSerName") < 0 && var1.indexOf("showPercent") < 0 && var1.indexOf("dLblPos") < 0) {
         var3.c(var2);
      }

      if (var1.indexOf("separator") < 0 && var6) {
         var3.b(var2);
      }

   }

   private void i(zcfw var1, Series var2) throws Exception {
      ChartPoint var3 = new ChartPoint(var2, 0);
      String var4 = null;
      var1.d();
      boolean var5 = false;

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("idx".equals(var1.p())) {
               var4 = s(var1);
            } else {
               String var6;
               if ("explosion".equals(var1.p())) {
                  var6 = s(var1);
                  if (var6 != null) {
                     var3.setExplosion(zase.C(var6));
                  }

                  var5 = true;
               } else if ("invertIfNegative".equals(var1.p())) {
                  var6 = s(var1);
                  var3.getArea().setInvertIfNegative(!"0".equals(var6));
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var3.getShapeProperties());
               } else if ("marker".equals(var1.p()) && !var1.n()) {
                  var3.setShadow(this.a(var1, var3.getMarker()));
               } else if ("pictureOptions".equals(var1.p()) && !var1.n()) {
                  this.a(var1, var3);
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         if (var4 == null) {
            this.a("dpt");
         }

         int var7 = zase.C(var4);
         if (!var5) {
            var3.setExplosion(var2.getExplosion());
         }

         var3.a = var7;
         var2.getPoints().a(var3);
         return;
      }
   }

   private boolean a(zcfw var1, Marker var2) throws Exception {
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var3;
               if ("symbol".equals(var1.p())) {
                  var3 = s(var1);
                  if (var3 != null) {
                     var2.setMarkerStyle(zase.P(var3));
                  }
               } else if ("size".equals(var1.p())) {
                  var3 = s(var1);
                  if (var3 != null) {
                     var2.setMarkerSize(zase.C(var3));
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2.i());
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         return var2.i().i();
      }
   }

   private void j(zcfw var1, Series var2) throws Exception {
      var1.d();

      while(true) {
         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && !var1.n()) {
                  if ("v".equals(var1.p())) {
                     var2.a(zase.b(var1.i()));
                  } else if (!"strRef".equals(var1.p())) {
                     var1.a();
                  } else {
                     var1.d();

                     while(true) {
                        while(var1.r() != 4) {
                           var1.j();
                           if (var1.r() == 1 && "f".equals(var1.p()) && !var1.n()) {
                              String var3 = var1.i();

                              try {
                                 if (var3.toUpperCase().indexOf("#REF") == -1) {
                                    var2.a("=" + var3);
                                 }
                              } catch (Exception var5) {
                                 com.aspose.cells.a.c.zl.b(var5);
                              }
                           } else if (var1.r() == 1 && "strCache".equals(var1.p()) && !var1.n()) {
                              this.k(var1, var2);
                           } else {
                              var1.a();
                           }
                        }

                        var1.h();
                        break;
                     }
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            return;
         }
      }
   }

   private void k(zcfw var1, Series var2) throws Exception {
      var1.d();

      while(true) {
         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && !var1.n()) {
                  if ("pt".equals(var1.p())) {
                     var1.d();

                     while(true) {
                        while(var1.r() != 4) {
                           var1.j();
                           if (var1.r() == 1 && !var1.n()) {
                              if ("v".equals(var1.p())) {
                                 String var3 = var1.i();
                                 if (var2.k() == null) {
                                    var2.a((Object)var3);
                                 } else {
                                    var2.b = var3;
                                 }
                              } else {
                                 var1.a();
                              }
                           } else {
                              var1.a();
                           }
                        }

                        var1.h();
                        break;
                     }
                  } else {
                     var1.a();
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            return;
         }
      }
   }

   private void a(zcfw var1, Title var2, boolean var3) throws Exception {
      var2.n(false);
      zqo var4 = null;
      zqo var5 = null;
      boolean var6 = false;
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("overlay".equals(var1.p())) {
               String var8 = s(var1);
               if ("1".equals(var8)) {
                  var2.setOverLay(true);
               } else {
                  var2.setOverLay(false);
               }
            } else if (var1.n()) {
               var1.a();
            } else if ("tx".equals(var1.p())) {
               var4 = this.v(var1);
               var6 = true;
            } else if ("txPr".equals(var1.p())) {
               var5 = this.a(var1, this.d.d());
            } else if ("layout".equals(var1.p())) {
               zpx var7 = this.t(var1);
               if (var7 != null) {
                  var7.a(this.d, var2);
               }
            } else if ("spPr".equals(var1.p()) && !var1.n()) {
               this.b(var1, var2.getShapeProperties());
            } else {
               var1.a();
            }
         }

         var1.h();
         if (var5 != null) {
            var5.a(var2, this.c, var3);
         }

         if (var6) {
            if (var4 != null) {
               var4.a(var5 == null ? null : var5.f, var2, this.c, var3);
            }

            if (var2.D() == null && var2.getText() == null) {
               var2.setText("");
            }
         } else {
            var2.setAutoText(true);
         }

         if (var5 == null && var4 == null) {
            if (var3) {
               var2.setAutoText(true);
               if (!this.d.getChartArea().getFont().f(17)) {
                  var2.getFont().setBold(true);
               }

               if (this.d.getChartArea().getFont().f(12)) {
                  var2.getFont().setDoubleSize(this.d.getChartArea().getFont().getDoubleSize() * 1.2D);
               } else {
                  switch(this.d.getStyle()) {
                  case -1:
                  case 2:
                     var2.getFont().setDoubleSize(18.0D);
                     break;
                  case 41:
                  case 42:
                  case 43:
                  case 44:
                  case 45:
                  case 46:
                  case 47:
                  case 48:
                     var2.getFont().setDoubleSize(18.0D);
                     var2.getFont().setColor(Color.getWhite());
                     break;
                  default:
                     var2.getFont().setDoubleSize(18.0D);
                  }
               }
            } else {
               switch(this.d.getStyle()) {
               case 41:
               case 42:
               case 43:
               case 44:
               case 45:
               case 46:
               case 47:
               case 48:
                  var2.getFont().setColor(Color.getWhite());
               }
            }
         }

         return;
      }
   }

   private static String s(zcfw var0) throws Exception {
      String var1 = var0.a("val");
      var0.a();
      return var1;
   }

   private void b(zcfw var1, ShapePropertyCollection var2) throws Exception {
      zaja var3 = new zaja(var2, this.a, this.d, this.g);
      var3.a(var1, var2.a);
   }

   private zpx t(zcfw var1) throws Exception {
      if (var1.n()) {
         var1.a();
         return null;
      } else {
         zpx var2 = null;
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && "manualLayout".equals(var1.p()) && !var1.n()) {
                  var2 = this.u(var1);
               } else {
                  var1.a();
               }
            }

            var1.h();
            return var2;
         }
      }
   }

   private zqo a(zcfw var1, int var2) throws Exception {
      return b(var1, var2);
   }

   private zpx u(zcfw var1) throws Exception {
      zpx var2 = new zpx();
      var1.d();

      while(var1.r() != 4) {
         var1.j();
         if (var1.r() != 1) {
            var1.a();
         } else if ("layoutTarget".equals(var1.p())) {
            var2.a = s(var1);
         } else if ("xMode".equals(var1.p())) {
            var2.b = s(var1);
         } else if ("yMode".equals(var1.p())) {
            var2.c = s(var1);
         } else if ("wMode".equals(var1.p())) {
            var2.d = s(var1);
         } else if ("hMode".equals(var1.p())) {
            var2.e = s(var1);
         } else if ("x".equals(var1.p())) {
            var2.f = s(var1);
         } else if ("y".equals(var1.p())) {
            var2.g = s(var1);
         } else if ("w".equals(var1.p())) {
            var2.h = s(var1);
         } else if ("h".equals(var1.p())) {
            var2.i = s(var1);
         } else {
            var1.a();
         }
      }

      var1.h();
      return var2;
   }

   private zqo v(zcfw var1) throws Exception {
      zqo var2 = null;
      var1.d();

      while(true) {
         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() == 1 && !var1.n()) {
                  if ("rich".equals(var1.p())) {
                     var2 = b(var1, this.d.d());
                  } else if (!"numRef".equals(var1.p()) && !"strRef".equals(var1.p()) && !"multiLvlStrRef".equals(var1.p())) {
                     var1.a();
                  } else {
                     zik var3 = this.r(var1);
                     if (var3.d() != null || var3.h() != null) {
                        var2 = new zqo();
                        var2.a(var3, this.d);
                     }
                  }
               } else {
                  var1.a();
               }
            }

            var1.h();
            return var2;
         }
      }
   }

   private static zqo b(zcfw var0, int var1) throws Exception {
      zqo var2 = new zqo();
      var0.d();
      boolean var3 = true;
      zoo var4 = null;

      while(var0.r() != 4) {
         var0.j();
         if (var0.r() != 1) {
            var0.a();
         } else if ("bodyPr".equals(var0.p())) {
            String var5 = var0.a("rot");
            String var6 = var0.a("vert");
            if (var6 == null) {
               var6 = "horz";
            }

            if (var6 != null) {
               switch(k.a(var6)) {
               case 12:
                  var2.b(true);
                  var2.a = -90;
                  break;
               case 13:
                  var2.a(true);
                  var2.a = 255;
                  var2.i = 1;
                  break;
               case 14:
                  var2.a(true);
                  var2.a = 255;
                  var2.i = 2;
                  break;
               default:
                  if (var5 != null) {
                     int var7 = zase.C(var5) / -60000;
                     if (Math.abs(var7) < 720) {
                        var2.a = var7 % 360;
                     }
                  }
               }
            }

            String var9 = var0.a("wrap");
            var2.e = !"none".equals(var9);
            var0.a();
         } else if ("p".equals(var0.p())) {
            zoo var8 = a(var0, var2, var3, var4, var1);
            if (var3) {
               var3 = false;
            }

            var4 = var8;
         } else {
            var0.a();
         }
      }

      var0.h();
      return var2;
   }

   static zoo a(zcfw var0, zqo var1, boolean var2, zoo var3, int var4) throws Exception {
      if (var0.n()) {
         var0.a();
         return null;
      } else {
         zoo var5 = null;
         zqg var6 = null;
         var0.d();

         zqg var7;
         while(zass.a(var0)) {
            if ("pPr".equals(var0.p())) {
               a(var0, var1, var4);
            } else if ("r".equals(var0.p())) {
               var7 = c(var0, var4);
               if (var1.h == null) {
                  var1.h = new ArrayList();
               }

               com.aspose.cells.b.a.a.ze.a(var1.h, (Object)var7);
               if (var6 == null) {
                  var6 = var7;
               }
            } else if ("br".equals(var0.p())) {
               var7 = new zqg();
               var7.b = "\n";
               if (var1.h == null) {
                  var1.h = new ArrayList();
               }

               com.aspose.cells.b.a.a.ze.a(var1.h, (Object)var7);
               var0.a();
            } else if ("defRPr".equals(var0.p())) {
               var1.f = d(var0, var4);
               if (var1.f == null) {
                  var1.g = true;
               }
            } else if ("fld".equals(var0.p())) {
               var7 = c(var0, var4);
               if (var7.c != null) {
                  switch(k.a(var7.c)) {
                  case 15:
                     var7.b = "[SERIES NAME]";
                     break;
                  case 16:
                     var7.b = "[CATEGORY NAME]";
                     break;
                  case 17:
                     var7.b = "[VALUE]";
                     break;
                  case 18:
                     var7.b = "[CELLRANGE]";
                     break;
                  case 19:
                     var7.b = "[PERCENTAGE]";
                  }
               }

               if (var1.h == null) {
                  var1.h = new ArrayList();
               }

               com.aspose.cells.b.a.a.ze.a(var1.h, (Object)var7);
               if (var6 == null) {
                  var6 = var7;
               }
            } else if ("endParaRPr".equals(var0.p())) {
               if (var6 == null) {
                  var5 = d(var0, var4);
               } else {
                  var1.j = var0.u();
               }
            } else {
               var0.a();
            }
         }

         if (!var2) {
            if (var6 != null) {
               if (var1.f() == null || !var1.e().f()) {
                  if (var3 == null) {
                     var6.b = "\n" + var6.b;
                  } else {
                     var7 = new zqg();
                     var7.b = "\n";
                     var7.a = var3;
                     if (var1.h == null) {
                        var1.h = new ArrayList();
                     }

                     var1.h.add(0, var7);
                  }
               }
            } else {
               var7 = new zqg();
               var7.b = "\n";
               var7.a = var5;
               if (var1.h == null) {
                  var1.h = new ArrayList();
               }

               com.aspose.cells.b.a.a.ze.a(var1.h, (Object)var7);
            }
         }

         return var5;
      }
   }

   private static void a(zcfw var0, zqo var1, int var2) throws Exception {
      String var3 = var0.a("rtl");
      String var4 = var0.a("algn");
      if (var3 != null && "1".equals(var3)) {
         var1.i = 2;
      }

      if (var4 != null) {
         int var5 = zase.J(var4);
         var1.a(zase.J(var4));
      }

      if (var0.n()) {
         var0.a();
      } else {
         var0.d();

         while(zass.a(var0)) {
            if ("defRPr".equals(var0.p())) {
               var1.f = d(var0, var2);
               if (var1.f == null) {
                  var1.g = true;
               }
            } else if ("buClr".equals(var0.p())) {
               zakp var6 = zaiq.a(var0);
               var1.e().a(var6);
            } else if ("buFont".equals(var0.p())) {
               zajl.a(var0, var1.e().b());
            } else if ("buChar".equals(var0.p())) {
               String var7 = var0.a("char");
               var1.e().a(1);
               ((zhw)var1.e().a).a = var7.charAt(0);
               var0.a();
            } else {
               var0.a();
            }
         }

      }
   }

   private static zqg c(zcfw var0, int var1) throws Exception {
      zqg var2 = new zqg();
      var2.c = var0.a("type", (String)null);
      var0.d();

      while(zass.a(var0)) {
         if ("rPr".equals(var0.p())) {
            zoo var3 = d(var0, var1);
            var2.a = var3;
         } else if ("t".equals(var0.p())) {
            var0.a(1);
            var2.b = zase.b(var0.i());
            var0.a(0);
         } else {
            var0.a();
         }
      }

      return var2;
   }

   private static zoo d(zcfw var0, int var1) throws Exception {
      zoo var2 = new zoo();
      if (var0.m()) {
         while(true) {
            if (!var0.l()) {
               var0.k();
               break;
            }

            if ("lang".equals(var0.p())) {
               var2.b(var0.s());
               var1 = zaku.a(var0.s());
            } else if ("altLang".equals(var0.p())) {
               var2.c(var0.s());
               var1 = zaku.a(var0.s());
            } else if ("sz".equals(var0.p())) {
               var2.f(zase.C(var0.s()) / 5);
            } else if ("b".equals(var0.p())) {
               var2.b("1".equals(var0.s()));
            } else if ("i".equals(var0.p())) {
               var2.a("1".equals(var0.s()));
            } else if ("u".equals(var0.p())) {
               var2.a(zase.z(var0.s()));
            } else if ("strike".equals(var0.p())) {
               if ("sngStrike".equals(var0.s())) {
                  var2.c(true);
               }

               if ("dblStrike".equals(var0.s())) {
                  var2.d(true);
               }
            } else if ("baseline".equals(var0.p())) {
               double var3 = zase.B(var0.s());
               if (var3 != 0.0D) {
                  if (var3 > 10000.0D) {
                     var2.f(true);
                  } else if (var3 < -10000.0D) {
                     var2.e(true);
                  }

                  var2.b((int)var3);
               }
            } else if ("cap".equals(var0.p())) {
               if ("small".equals(var0.s())) {
                  var2.h(true);
               } else if ("all".equals(var0.s())) {
                  var2.i(true);
               }
            } else if ("normalizeH".equals(var0.p()) && zase.ax(var0.s())) {
               var2.g(true);
            }
         }
      }

      if (var0.n()) {
         var0.a();
         return var2.v() ? null : var2;
      } else {
         var0.d();

         while(zass.a(var0)) {
            if ("solidFill".equals(var0.p())) {
               var2.a(zaiq.a(var0));
            } else {
               String var5;
               if ("latin".equals(var0.p())) {
                  var5 = var0.a("typeface");
                  if (var5 != null && var2.j() == null) {
                     var2.d(var5);
                  }

                  var0.a();
               } else if ("ea".equals(var0.p())) {
                  var5 = var0.a("typeface");
                  if (var5 != null && var2.j() == null && zaku.b(var1)) {
                     var2.d(var5);
                  }

                  var0.a();
               } else if ("cs".equals(var0.p())) {
                  var5 = var0.a("typeface");
                  if (var5 != null && var2.j() == null) {
                     var2.d(var5);
                  }

                  var0.a();
               } else {
                  var0.a();
               }
            }
         }

         if (var2.v()) {
            return null;
         } else {
            return var2;
         }
      }
   }

   private void a(String var1) {
      throw new CellsException(6, "Miss or invalid idx element of " + var1);
   }

   private void a(zov var1, zov var2) {
      if (var1.e != null) {
         var2.a.setCrossType(zase.x(var1.e));
      }

      if (var1.f != null) {
         var2.a.c(zase.B(var1.f));
      }

      if (var1.g != null) {
         var2.a.setAxisBetweenCategories("between".equals(var1.g));
      }

   }

   private zov b(String var1) {
      for(int var2 = 0; var2 < this.f.size(); ++var2) {
         zov var3 = (zov)this.f.get(var2);
         if (com.aspose.cells.b.a.zv.b(var3.c, var1)) {
            return var3;
         }
      }

      return null;
   }

   private zov a(zov var1) {
      for(int var2 = 0; var2 < this.f.size(); ++var2) {
         zov var3 = (zov)this.f.get(var2);
         if (com.aspose.cells.b.a.zv.b(var3.c, var1.d)) {
            var3.b = var1.a;
            var1.b = var3.a;
            return var3;
         }
      }

      return null;
   }

   private Axis c(String var1) {
      byte var2 = 0;
      if ("catAx".equals(var1)) {
         var2 = 0;
      } else if ("valAx".equals(var1)) {
         var2 = 1;
      } else if ("dateAx".equals(var1)) {
         var2 = 0;
      } else if ("serAx".equals(var1)) {
         var2 = 2;
      }

      Axis var3 = new Axis(var2, true, this.d);
      if ("dateAx".equals(var1)) {
         var3.setCategoryType(2);
      } else if ("catAx".equals(var1)) {
         var3.setCategoryType(1);
      }

      var3.setMajorTickMark(3);
      var3.setMinorTickMark(2);
      return var3;
   }

   private void a(zcfw var1, ChartDataTable var2) throws Exception {
      var2.setShowLegendKey(false);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var4;
               if ("showHorzBorder".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var2.setHasBorderHorizontal(!"0".equals(var4));
                  }
               } else if ("showVertBorder".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var2.setHasBorderVertical(!"0".equals(var4));
                  }
               } else if ("showOutline".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var2.setHasBorderOutline(!"0".equals(var4));
                  }
               } else if ("showKeys".equals(var1.p())) {
                  var4 = s(var1);
                  if (var4 != null) {
                     var2.setShowLegendKey(!"0".equals(var4));
                  }
               } else if ("txPr".equals(var1.p())) {
                  zqo var3 = this.a(var1, this.d.d());
                  if (var3.f != null) {
                     var3.a(this.d, false);
                     var2.a(zase.a(var3.f, this.c));
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2.d());
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         return;
      }
   }

   private void b() {
      boolean var1 = false;
      int var2 = Math.min(this.f.size(), 4);

      for(int var3 = 0; var3 < var2; ++var3) {
         zov var4 = (zov)this.f.get(var3);
         if (var4.b == null) {
            zov var5 = this.a(var4);
            if (var5 == null) {
               throw new CellsException(6, "axis " + var4.d + " not found!");
            }

            this.a(var4, var5);
            this.a(var5, var4);
            if (var4.a.b() == 2) {
               this.d.a(false, var4.a);
            } else {
               this.d.a(var1, var4.a, var5.a);
               var4.h = !var1;
               var5.h = !var1;
               if (!var1) {
                  var1 = true;
               }
            }
         }
      }

      com.aspose.cells.b.a.a.zc var11 = com.aspose.cells.b.a.a.zf.a(this.e);

      while(var11.c()) {
         ziz var12 = (ziz)var11.a();
         String var13 = (String)var11.b();
         if (var13 != null && !"".equals(var13)) {
            String[] var6 = com.aspose.cells.b.a.zv.d(var13, ' ');
            zov var7 = this.b(var6[0]);
            zov var8 = this.b(var6[1]);
            if (var7 == null) {
               throw new CellsException(6, "axis " + var6[0] + " not found!");
            }

            if (var8 == null) {
               throw new CellsException(6, "axis " + var6[1] + " not found!");
            }

            var12.a(!var7.h);
            if (var7.a.b() != 2 && this.a(var12)) {
               zov var9 = var7;
               if (var7.a.b() == 0) {
                  var9 = var8;
               }

               if (var9.a.b() != 1) {
                  var9 = this.a(var7);
               }

               if (!var9.i) {
                  Axis var10 = var9.a;
                  if (var10.getMajorUnit() > 0.0D) {
                     var10.setMajorUnit(100.0D * var10.getMajorUnit());
                  }

                  if (var10.getMinorUnit() > 0.0D) {
                     var10.setMinorUnit(100.0D * var10.getMinorUnit());
                  }

                  if (var10.getCrossType() == 2 && var10.getCrossAt() != 0.0D) {
                     var10.setCrossAt(100.0D * var10.getCrossAt());
                  }

                  if (!var10.f()) {
                     var10.setMaxValue(100.0D * (Double)var10.getMaxValue());
                  }

                  if (!var10.e()) {
                     var10.setMinValue(100.0D * (Double)var10.getMinValue());
                  }

                  var9.i = true;
               }
            }
         }
      }

   }

   private boolean a(ziz var1) {
      switch(var1.j()) {
      case 2:
      case 5:
      case 8:
      case 11:
      case 16:
      case 20:
      case 23:
      case 26:
      case 30:
      case 33:
      case 39:
      case 42:
      case 52:
      case 55:
         return true;
      case 3:
      case 4:
      case 6:
      case 7:
      case 9:
      case 10:
      case 12:
      case 13:
      case 14:
      case 15:
      case 17:
      case 18:
      case 19:
      case 21:
      case 22:
      case 24:
      case 25:
      case 27:
      case 28:
      case 29:
      case 31:
      case 32:
      case 34:
      case 35:
      case 36:
      case 37:
      case 38:
      case 40:
      case 41:
      case 43:
      case 44:
      case 45:
      case 46:
      case 47:
      case 48:
      case 49:
      case 50:
      case 51:
      case 53:
      case 54:
      default:
         return false;
      }
   }

   private Axis a(zcfw var1, String var2) throws Exception {
      Axis var3 = this.c(var2);
      var3.d = var2;
      zov var4 = new zov();
      var4.a = var3;
      com.aspose.cells.b.a.a.ze.a(this.f, (Object)var4);
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else if ("axId".equals(var1.p())) {
               var4.c = s(var1);
            } else if ("scaling".equals(var1.p())) {
               this.b(var1, var3);
            } else {
               String var5;
               boolean var6;
               if (!"axPos".equals(var1.p())) {
                  if ("title".equals(var1.p()) && !var1.n()) {
                     var3.getTitle().setAutoText(true);
                     if (this.d.getType() == 6) {
                        if ("catAx".equals(var2)) {
                           var3.getTitle().setRotationAngle(90);
                        } else if ("valAx".equals(var2)) {
                           var3.getTitle().setRotationAngle(0);
                        }
                     }

                     this.a(var1, var3.getTitle(), false);
                  } else {
                     Line var11;
                     if ("majorGridlines".equals(var1.p())) {
                        var11 = var3.getMajorGridLines();
                        var6 = this.a(var1, var3.s());
                        if (!var6) {
                           var11.n(0);
                        }
                     } else if ("minorGridlines".equals(var1.p())) {
                        var11 = var3.getMinorGridLines();
                        var6 = this.a(var1, var3.t());
                        if (!var6) {
                           var11.n(0);
                        }
                     } else if ("numFmt".equals(var1.p())) {
                        var5 = var1.a("formatCode");
                        if (var5 != null) {
                           var3.getTickLabels().setNumberFormat(var5);
                        }

                        var5 = var1.a("sourceLinked");
                        if (var5 != null) {
                           var3.getTickLabels().setNumberFormatLinked(!"0".equals(var5));
                        }

                        var1.a();
                     } else if ("delete".equals(var1.p())) {
                        var5 = s(var1);
                        var3.setVisible("0".equals(var5));
                     } else if ("majorTickMark".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setMajorTickMark(zase.v(var5));
                        }
                     } else if ("minorTickMark".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setMinorTickMark(zase.v(var5));
                        }
                     } else if ("tickLblPos".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setTickLabelPosition(zase.w(var5));
                           if ("none".equals(var5) && zase.M(this.d.getType()) && var3.b() == 0 && this.d.c.getCount() > 0) {
                              this.d.c.a(0).n(false);
                           }
                        }
                     } else if ("spPr".equals(var1.p()) && !var1.n()) {
                        this.b(var1, var3.r());
                     } else if ("txPr".equals(var1.p())) {
                        zqo var9 = this.a(var1, this.d.d());
                        var9.a(var3.getTickLabels(), this.d, this.c);
                     } else if ("crossAx".equals(var1.p())) {
                        var4.d = s(var1);
                     } else if ("crosses".equals(var1.p())) {
                        var4.e = s(var1);
                     } else if ("crossesAt".equals(var1.p())) {
                        var4.f = s(var1);
                     } else if ("auto".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           if ("1".equals(var5)) {
                              var3.setCategoryType(0);
                           } else if ("dateAx".equals(var2)) {
                              var3.setCategoryType(2);
                           } else {
                              var3.setCategoryType(1);
                           }

                           var3.g = true;
                        }
                     } else if ("lblAlgn".equals(var1.p())) {
                        var5 = s(var1);
                     } else if ("baseTimeUnit".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setBaseUnitScale(zase.L(var5));
                        }
                     } else if ("majorUnit".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           double var10 = zase.B(var5);
                           if (var10 != 0.0D) {
                              var3.setMajorUnit(var10);
                           }
                        }
                     } else if ("majorTimeUnit".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.e(zase.L(var5));
                        }
                     } else if ("minorUnit".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setMinorUnit(zase.B(var5));
                        }
                     } else if ("minorTimeUnit".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.f(zase.L(var5));
                        }
                     } else if ("lblOffset".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.getTickLabels().setOffset(zase.C(var5));
                        }
                     } else if ("tickLblSkip".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setTickLabelSpacing(zase.C(var5));
                        }
                     } else if ("tickMarkSkip".equals(var1.p())) {
                        var5 = s(var1);
                        if (var5 != null) {
                           var3.setTickMarkSpacing(zase.C(var5));
                        }
                     } else if ("crossBetween".equals(var1.p())) {
                        var4.g = s(var1);
                     } else if ("dispUnits".equals(var1.p())) {
                        var3.b(false);
                        this.a(var1, var3);
                     } else if ("noMultiLvlLbl".equals(var1.p())) {
                        var3.setHasMultiLevelLabels("0".equals(s(var1)));
                     } else {
                        var1.a();
                     }
                  }
               } else {
                  var5 = s(var1);
                  var3.e = var5;
                  if ("b".equals(var5) || "t".equals(var5)) {
                     var6 = true;
                     if (this.d.c.getCount() == 0) {
                        var6 = false;
                     }

                     for(int var7 = 0; var7 < this.d.c.getCount(); ++var7) {
                        ziz var8 = this.d.c.a(var7);
                        if (!ChartCollection.k(var8.j()) && !ChartCollection.q(var8.j())) {
                           var6 = false;
                        }
                     }

                     if (var6) {
                        var3.a(0);
                     }
                  }
               }
            }
         }

         var1.h();
         return var3;
      }
   }

   private void a(zcfw var1, Axis var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(true) {
            while(var1.r() != 4) {
               var1.j();
               if (var1.r() != 1) {
                  var1.a();
               } else {
                  String var3;
                  if ("builtInUnit".equals(var1.p())) {
                     var3 = s(var1);
                     var2.setDisplayUnit(zase.ao(var3));
                  } else if ("custUnit".equals(var1.p())) {
                     var3 = s(var1);
                     if (var3 != null) {
                        var2.setCustUnit(zase.C(var3));
                     }
                  } else if ("dispUnitsLbl".equals(var1.p()) && !var1.n()) {
                     this.a(var1, var2.getDisplayUnitLabel());
                     var2.b(true);
                  } else {
                     var1.a();
                  }
               }
            }

            var1.h();
            return;
         }
      }
   }

   private void a(zcfw var1, DisplayUnitLabel var2) throws Exception {
      var1.d();

      while(true) {
         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               zqo var5;
               if ("tx".equals(var1.p())) {
                  var5 = this.v(var1);
                  if (var5 != null) {
                     var5.a(var2, this.c);
                  }
               } else if ("txPr".equals(var1.p())) {
                  var5 = this.a(var1, this.d.d());
                  if (var5.f != null) {
                     if (var2.g() != null) {
                        if (var5.f.j() != null && ("+mj-lt".equals(var5.f.j()) || "+mn-lt".equals(var5.f.j()))) {
                           var5.f.d(this.d.getChartArea().getFont().getName());
                        }

                        var5.f.b(var2.getFont());
                     } else {
                        var5.a(this.d, false);
                        var2.c(zase.a(var5.f, this.c));
                     }

                     Font var4 = var2.getFont();
                  }
               } else if ("layout".equals(var1.p()) && !var1.n()) {
                  zpx var3 = this.t(var1);
                  if (var3 != null) {
                     var3.a(this.d, var2);
                  }
               } else if ("spPr".equals(var1.p()) && !var1.n()) {
                  this.b(var1, var2.getShapeProperties());
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
         return;
      }
   }

   private void b(zcfw var1, Axis var2) throws Exception {
      if (var1.n()) {
         var1.a();
      } else {
         var1.d();

         while(var1.r() != 4) {
            var1.j();
            if (var1.r() != 1) {
               var1.a();
            } else {
               String var3;
               if ("logBase".equals(var1.p())) {
                  var3 = s(var1);
                  if (var3 != null) {
                     var2.setLogarithmic(true);
                     var2.setLogBase(zase.B(var3));
                  }
               } else if ("orientation".equals(var1.p())) {
                  var3 = s(var1);
                  if ("maxMin".equals(var3)) {
                     var2.setPlotOrderReversed(true);
                  } else if ("minMax".equals(var3)) {
                     var2.setPlotOrderReversed(false);
                  }
               } else if ("max".equals(var1.p())) {
                  var3 = s(var1);
                  var2.setMaxValue(zase.B(var3));
               } else if ("min".equals(var1.p())) {
                  var3 = s(var1);
                  var2.setMinValue(zase.B(var3));
               } else {
                  var1.a();
               }
            }
         }

         var1.h();
      }
   }

   private void a(zcfw var1, Legend var2) throws Exception {
      LegendEntry var3 = null;
      var1.d();

      while(var1.r() != 4) {
         var1.j();
         if (var1.r() != 1) {
            var1.a();
         } else {
            String var4;
            if ("idx".equals(var1.p())) {
               var4 = s(var1);
               if (var4 != null) {
                  int var5 = zase.C(var4);
                  var3 = var2.getLegendEntries().get(var5);
               }
            } else if ("delete".equals(var1.p())) {
               var4 = s(var1);
               if (var3 != null && !"0".equals(var4)) {
                  var3.setDeleted(true);
               }
            } else if ("txPr".equals(var1.p())) {
               zqo var6 = this.a(var1, this.d.d());
               if (var6.f != null && var3 != null) {
                  var6.a(this.d, false);
                  var3.a(zase.a(var6.f, this.c));
               }
            } else {
               var1.a();
            }
         }
      }

      var1.h();
      if (var3 == null) {
         this.a("legendEntry");
      }

   }

   private void w(zcfw var1) throws Exception {
      var1.j();
   }
}
